package com.zmn.uac.common.info.mobile;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 类描述：用户手机号验证码、三方openId登录信息
 *
 * @author xujie
 * @since 2021/06/14 14:12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("用户手机号验证码、三方openId登录信息")
public class MobileCaptchaThirdOpenidUserLoginInfo extends MobileCaptchaUserLoginInfo {

    /**
     * 三方类型
     */
    @NotNull(message = "三方类型不能为空")
    @ApiModelProperty(value = "三方类型(支付宝:10；百度:20；字节跳动、抖音：30；钉钉：40；京东：50；微信：60)", required = true)
    private Integer thirdType;

    @NotNull(message = "code不能为空")
    @ApiModelProperty(value = "code", name = "code", required = true)
    private String code;

    @ApiModelProperty(value = "字节跳动anonymousCode")
    private String anonymousCode;

    @ApiModelProperty(value = "deviceId设备信息", notes = "默认为 UTF-8")
    private String deviceId;
}
